package com.iecas;

import com.iecas.launch.Client;
import com.iecas.launch.Server;

import javax.swing.*;

public class Main {
    public static void main(String[] args) {
        if (args.length == 1) {
            String command = args[0];
            if ("server".equals(command)) {
                SwingUtilities.invokeLater(() -> new Server().start());
            } else if ("client".equals(command)) {
                SwingUtilities.invokeLater(Client::new);
            }
        }

    }
}
